﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MVVMPractice.Models
{
    public class DataModel : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler? PropertyChanged;

        private int _value1;

		public int Value1
		{
			get { return _value1; }
			set { _value1 = value; }
		}
		
		private int _value2;

		public int Value2
		{
			get { return _value2; }
			set { _value2 = value; }
		}
		
		private int _value3;

        public int Value3
		{
			get { return _value3; }
			set { _value3 = value;
			PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Value3)));}
		}

	}
}
